﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using ISumen;
using Sumen.Business;
using Sumen.Business.Model.Presenter.Sys;

namespace Sumen_Stock.LookAndFeel.Sumen_System
{
    public partial class Frm_Parameters : DevExpress.XtraEditors.XtraForm
    {
        private FromCode _fromCode = FromCode.FrmParameter;
        public Frm_Parameters()
        {
            InitializeComponent();
            if (ClsPublic.Writelog == "1")
            {
                SysLogPresenter log = new SysLogPresenter();
                log.Add(_fromCode, EnumFormStatus.View, "", "");
            }
        }

        private void Frm_Parameters_Load(object sender, EventArgs e)
        {
            //ucDanhMuc1.gridView.Columns["Opt_Actived"].Visible = false;
        }

        private void Frm_Parameters_FormClosing(object sender, FormClosingEventArgs e)
        {
            if (ClsPublic.Writelog == "1" && ucDanhMuc1.IsSave)
            {
                SysLogPresenter log = new SysLogPresenter();
                log.Add(_fromCode, EnumFormStatus.Modify, "", "");
            }
        }
    }
}